import React from 'react';
// Input: liked: Boolean
// Output: onCLik
const Like = ({ onClick, liked }) => {
  let classes = 'fa fa-heart';
  if (!liked) classes += '-o';
  return (
    <i
      className={classes}
      onClick={onClick}
      aria-hidden="true"
      style={{ cursor: 'pointer' }}
    ></i>
  );
};
export default Like;
